﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using Hyweb.Data.UI.Agent;

namespace ScriptDumper.Manager
{
    public class DbColumn : Column, IComparer
    {
        public int PkSequence
        { set; get; }

        public string DefaultValue
        { get; set; }

        public string Description { get; set; }

        public string EnglishDescription { get; set; }

        public string ErrorMessage { get; set; }

        #region IComparer<DbColumn> Members

        public int Compare(DbColumn x, DbColumn y)
        {
            return x.PkSequence.CompareTo(y.PkSequence);
        }

        #endregion

        #region IComparer Members

        public int Compare(object x, object y)
        {
            DbColumn x1 = x as DbColumn;
            DbColumn y1 = y as DbColumn;

            return x1.PkSequence.CompareTo(y1.PkSequence);
        }

        #endregion
    }
}
